﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MusicForMvc3.Method.Cache
{
    public class CacheKeyAttribute : Attribute
    {
        private string _key = null;
        /// <summary>
        /// 自定义CacheKey
        /// </summary>
        public string Key
        {
            get { return _key; }
            set { _key = value; }
        }

        private bool _val_md5 = false;
        /// <summary>
        /// 值是否经过MD5加密缩小长度
        /// </summary>
        public bool ValueMD5
        {
            get { return _val_md5; }
            set { _val_md5 = value; }
        }


    }
}